package com.ruoyi.system.gloria.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.gloria.mapper.BankUserMsgMapper;
import com.ruoyi.system.gloria.domain.BankUserMsg;
import com.ruoyi.system.gloria.service.IBankUserMsgService;

/**
 * 银行支部表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-06-21
 */
@Service
public class BankUserMsgServiceImpl implements IBankUserMsgService 
{
    @Autowired
    private BankUserMsgMapper bankUserMsgMapper;

    /**
     * 查询银行支部表
     * 
     * @param id 银行支部表ID
     * @return 银行支部表
     */
    @Override
    public BankUserMsg selectBankUserMsgById(String id)
    {
        return bankUserMsgMapper.selectBankUserMsgById(id);
    }

    /**
     * 查询银行支部表列表
     * 
     * @param bankUserMsg 银行支部表
     * @return 银行支部表
     */
    @Override
    public List<BankUserMsg> selectBankUserMsgList(BankUserMsg bankUserMsg)
    {
        return bankUserMsgMapper.selectBankUserMsgList(bankUserMsg);
    }

    /**
     * 新增银行支部表
     * 
     * @param bankUserMsg 银行支部表
     * @return 结果
     */
    @Override
    public int insertBankUserMsg(BankUserMsg bankUserMsg)
    {
        return bankUserMsgMapper.insertBankUserMsg(bankUserMsg);
    }

    /**
     * 修改银行支部表
     * 
     * @param bankUserMsg 银行支部表
     * @return 结果
     */
    @Override
    public int updateBankUserMsg(BankUserMsg bankUserMsg)
    {
        return bankUserMsgMapper.updateBankUserMsg(bankUserMsg);
    }

    /**
     * 批量删除银行支部表
     * 
     * @param ids 需要删除的银行支部表ID
     * @return 结果
     */
    @Override
    public int deleteBankUserMsgByIds(String[] ids)
    {
        return bankUserMsgMapper.deleteBankUserMsgByIds(ids);
    }

    /**
     * 删除银行支部表信息
     * 
     * @param id 银行支部表ID
     * @return 结果
     */
    @Override
    public int deleteBankUserMsgById(String id)
    {
        return bankUserMsgMapper.deleteBankUserMsgById(id);
    }
}
